﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace kmaraszkiewicz.Controllers
{
    [Authorize(Roles = "Admin")]
    public class AdminController : BaseController
    {
        private const string MasterName = "_Admin";

        protected override ViewResult View(string viewName, string masterName, object model)
        {
            if (String.IsNullOrEmpty(masterName))
            {
                masterName = MasterName;
            }
            return base.View(viewName, masterName, model);
        }
    }
}
